package com.huatai.user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 单位信息表
 * </p>
 *
 * @author songxiude
 * @since 2024-05-29
 */
@Data
@TableName("unit_info")
@ApiModel(value = "UnitInfo对象", description = "单位信息表")
public class UnitInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty("主键")
	@TableId("id")
	private Long id;

	@ApiModelProperty("单位名称")
	@TableField("unit_name")
	private String unitName;

	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@ApiModelProperty(value = "创建时间",hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;


}




